import { createApp } from "vue";
import "./style.css";
import App from "./App.vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

import "@/assets/css/rest.scss";

import router from "./router";

//rem插件
import "./utils/flexible.js";

import * as turf from "@turf/turf";
window.turf = turf;

import "vis3d/vis3d.css";
import vis3d from "./vis3d/vis3d.export.js";
window.vis3d = vis3d;

import pinia from "./stores";

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.use(pinia).use(router).use(ElementPlus).mount("#app");
